package com.itheima.mapper;

import com.itheima.domain.Role;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface RoleMapper {

    @Select("SELECT * FROM user_role ur,role r WHERE ur.roleId=r.id and ur.userId=#{uid}")
    List<Role> findRoleByUId(int uid);
}